// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// import Vuex from 'vuex'  //引入vuex实现兄弟组件传值
import vuexI18n from 'vuex-i18n' //引入vuex-i18n解决vux框架使用时报语言错误的报警
import filters from './filter'  //引入全局过滤器
//解决vux框架使用时报语言错误的报警
import { DatetimePlugin, LocalePlugin, DevicePlugin, ToastPlugin, AlertPlugin, ConfirmPlugin, LoadingPlugin, WechatPlugin, AjaxPlugin, AppPlugin } from 'vux'


import store from './store/store'
// import $ from 'jquery'


// 全局加载resource拦截器
import './axios/'
import Axios from 'axios'
Vue.prototype.$http = Axios

//全局挂载vuex
// Vue.use(Vuex)

//解决vux框架使用时报语言错误的报警
Vue.use(DevicePlugin)
Vue.use(ToastPlugin)
Vue.use(AlertPlugin)
Vue.use(ConfirmPlugin)
Vue.use(LoadingPlugin)
Vue.use(WechatPlugin)
Vue.use(AjaxPlugin)
Vue.use(LocalePlugin)
Vue.use(DatetimePlugin)
//****************************** */


Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  store
})
